package org.dromara.system.domain.bo;

import org.dromara.system.domain.JwTeacherOffice;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 教师办公室业务对象 jw_teacher_office
 *
 * @author Lion Li
 * @date 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JwTeacherOffice.class, reverseConvertGenerate = false)
public class JwTeacherOfficeBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 办公室编号
     */
    @NotBlank(message = "办公室编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String officeId;

    /**
     * 管理员教师编号
     */
    @NotBlank(message = "管理员教师编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String teacherId;

    /**
     * 办公室名称
     */
    @NotBlank(message = "办公室名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 位置
     */
    @NotBlank(message = "位置不能为空", groups = { AddGroup.class, EditGroup.class })
    private String location;

    /**
     * 开门时间
     */
    @NotNull(message = "开门时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date onTime;

    /**
     * 关门时间
     */
    @NotNull(message = "关门时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date offTime;


}
